package com.nothing.Service;

import com.nothing.Dao.IUserDao;
import com.nothing.Dao.UserDaoImpl;
import com.nothing.Model.User;

/**
 * Created by Administrator on 2017/7/12.
 */
public class UserServiceImpl implements IUserService {
    private IUserDao userDao;
    public UserServiceImpl() {
        userDao = new UserDaoImpl();
    }
    public User findUserById(int id) {
        return userDao.findUserById(id);
    }
    public User findUserByName(String name) {
        return userDao.findUserByName(name);
    }
    public void addUser(User user){
        userDao.addUser(user);
    }

}
